package com.it.gw.modules.water.fragment

import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.it.gw.base.BaseFragment
import com.it.gw.databinding.FragmentWaterConservancyBinding
import com.it.gw.modules.water.activity.douqu.DouQuItemsActivity
import com.it.gw.modules.water.activity.irr.IrrItemsActivity
import com.it.gw.modules.water.activity.jijing.JiJingItemsActivity
import com.it.gw.modules.water.activity.lake.LakeItemsActivity
import com.it.gw.modules.water.activity.pump.PumpItemsActivity
import com.it.gw.modules.water.activity.res.ResItemsActivity
import com.it.gw.modules.water.activity.rv.RvItemsActivity
import com.it.gw.modules.water.activity.shoubu.ShouBuItemsActivity
import com.it.gw.modules.water.activity.sluice.SluiceItemsActivity

class WaterConservancyFragment : BaseFragment<FragmentWaterConservancyBinding>() {
    override fun initObserver() {

    }

    override fun initListener() {
        binding.llResItems.setOnClickListener {
            val intent = Intent(requireActivity(), ResItemsActivity::class.java)
            startActivity(intent)
        }
        binding.rvItems.setOnClickListener {
            val intent = Intent(requireActivity(), RvItemsActivity::class.java)
            startActivity(intent)
        }
        binding.lakeItems.setOnClickListener {
            val intent = Intent(requireActivity(), LakeItemsActivity::class.java)
            startActivity(intent)
        }
        binding.sluiceItems.setOnClickListener {
            val intent = Intent(requireActivity(), SluiceItemsActivity::class.java)
            startActivity(intent)
        }
        binding.pumpItems.setOnClickListener {
            val intent = Intent(requireActivity(), PumpItemsActivity::class.java)
            startActivity(intent)
        }
        binding.shoubuItems.setOnClickListener {
            val intent = Intent(requireActivity(), ShouBuItemsActivity::class.java)
            startActivity(intent)
        }
        binding.douquItems.setOnClickListener {
            val intent = Intent(requireActivity(), DouQuItemsActivity::class.java)
            startActivity(intent)
        }
        binding.jijingItems.setOnClickListener {
            val intent = Intent(requireActivity(), JiJingItemsActivity::class.java)
            startActivity(intent)
        }
        binding.irrItems.setOnClickListener {
            val intent = Intent(requireActivity(), IrrItemsActivity::class.java)
            startActivity(intent)
        }

    }


    override fun initData() {

    }

    override fun initView() {
    }


    override fun getView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View {
        binding = FragmentWaterConservancyBinding.inflate(layoutInflater)
        return binding.root
    }
}